package com.tarena.lbs.user.dao.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.tarena.lbs.user.pojo.po.UserGroupPO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface UserGroupMapper  extends BaseMapper<UserGroupPO> {
    @Select("SELECT id FROM lbs_user_group WHERE tag_ids=#{tagId} ")
    List<Integer> selectByTag(int tagId);
    @Select("SELECT business_id FROM lbs_user_group WHERE tag_ids=#{tagId}")
    Integer selectBusinessId(Integer tagId);
}
